import axios from "axios";
/**
 * 轮播图接口
 */
export const homeBanner = () => {
  return axios({
    method: 'get',
    url: 'http://kumanxuan1.f3322.net:8001/index/index'
  })
}
// 商品导航接口
export const homeNav = () => {
  return axios({
    method: 'get',
    url: 'http://kumanxuan1.f3322.net:8001/index/index'
  })
}

// 商品分类接口

export const homeCatalog = () => {
  return axios({
    method: 'get',
    url: 'http://kumanxuan1.f3322.net:8001/catalog/index'
  })
}

//品牌详情列表
export const homeProductList = (page, size) => {
  return axios({
    method: 'get',
    url: 'http://kumanxuan1.f3322.net:8001/goods/list',
    params: {
      page,
      size
    }
  })
}
